import java.util.HashMap;
import java.util.Map;

public class Application {

  public static void main(String[] args) {
    Student linda = new Student("Linda", 18);
    Student cindy = new Student("Cindy", 19);
    Student mary = new Student("Mary", 19);

    Map<String, Integer> students = new HashMap<String, Integer>(){
      {
        put(linda.getName(), linda.getAge());
        put(cindy.getName(), cindy.getAge());
        put(mary.getName(), mary.getAge());
      }
    };

    Teacher bob = new Teacher("Bob", students);

    Student ben = new Student("Ben", 19);
    Student solider = new Student("Solider", 20);

    bob.addStudent(ben);
    bob.addStudent(solider);

    bob.printStudents();
  }

}
